package com.atstudy.state;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/23 15:25
 * @copyright: 博为峰
 */
public class JoinTest {
    public static void main(String[] args) throws InterruptedException {
        JoinDemo joinDemo01 = new JoinDemo();
        joinDemo01.start();
//        joinDemo01.join();//等待该线程结束

        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName() + "," + i);
        }
    }
}
